Showing posts with label Agent 47. Show all posts
Showing posts with label Agent 47. Show all posts
Trailler
Agent 47
September 29, 2022
Agent 47
September 29, 2022
Hey coders, I am Agent 47 from Cyber Assassin's. Today we are writing a code which can do a simple math like addition , divide , multiply or minus. so here is the code
# include <stdio.h> int main(){ int a=40,b=60,sum; sum= a+b; printf("the sum is :%d",sum); return 0; }
so the program is mainly for basic sum or maths.You all can understand it if you try and run into your compiler. So please try it and also comment your question and result.
I'm giving you a quiz
write program that will multiply
(hint: use sum= a*b;).
Addition [C]
Agent 47
September 24, 2022
Agent 47
September 24, 2022
Hey there coders welcome to cyber assassin's. I am Agent 47 from cyber assassin's
the post is about our first c code
#include <stdio.h>
int main()
{
printf("Hello world");
return 0;
}it is the first code for a beginner. In this code you have written #include <stdio.h> this is is a statement which is used for all codes for the language C. In the next line you have written int main() this is for the main code starts from the brackets. and the next line you have given { this is called indemnity
printf("the statement");
you have to give it because it enlarges the beauty of this code. the printf and the f is for function so the full
meaning of printf means the function for printing. and the return 0; it is for the code is ended here.
so this is the code. Hope you will understand it.
there is a question for all of you that write a code that's output will be "my name is X"
Hello World [C]
Agent 47
September 22, 2022
Agent 47
September 22, 2022
.gif)


.png)