ID:5418 C - WU - Add Two Integers (Format Specifier)
#include <stdio.h>
int main()
{
int A, B;
scanf("%d %d",&A, &B);
printf("%d", A+B);
}
ID:5419 C - WU - Product Two Integers (Scanf Args)
#include <stdio.h>
int main()
{
int A, B;
scanf("%d %d",&A,&B);
printf("%d", A*B);
}
ID:5420 C - WU - Remainder Two Integers (Printf Args)
#include <stdio.h>
int main()
{
int A, B;
scanf("%d %d",&A, &B);
printf("%d",A%B);
}
ID:5421 C - WU - Quotient Two Integers (Declaration)
#include <stdio.h>
int main()
{
int A,B ;
scanf("%d %d",&A, &B);
printf("%d", A/B);
}
ID:5425 C - WU - Three Integers - Sum and Product (Printf Args)
#include <stdio.h>
int main()
{
int A, B, C;
scanf("%d %d %d", &C, &A, &B);
printf("%d",(C+A)*B );
}
ID:5462 C - WU - Print Number (scanf Args)
#include <stdio.h>
int main()
{
int N;
scanf("%d",&N );
printf("%d",N);
}
ID:5427 C - WU - Three Integers - Subtract and Multiplies(Declaration)
#include <stdio.h>
int main()
{ int A,B,C;
scanf("%d %d %d", &C, &A, &B);
printf("%d", (C-A)*B);
}
ID:5463 C - WU - Multiply the Number with 2(printf Args)
#include <stdio.h>
int main()
{
int N;
scanf("%d",&N);
printf("%d",N*2);
}
ID:5428 C - WU - Three Integers - Sum and Divides(Format Specifier)
#include <stdio.h>
int main()
{
int A, B, C;
scanf("%d%d%d ",&A,&B,&C);
printf("%d", (A+B)/C);
}
ID:5464 C - WU -Half of the Number (printf Args)
printf("%d",N/2);
ID:5465 C - WU - Square the Number (printf Args)
printf("%d",N*N);
ID:5469 C - WU - Product of Two Integers (Error Identification)
#include <stdio.h>
int main()
{
int x,y;
scanf("%d%d",&x,&y);
printf("%d",x*y);
return 0;
}
ID:5429 C - WU - Three Integers - Subtract and Divide (Printf Args)
printf("%d",(C-A)/B);
ID:5474 C - WU - Sum of Two Numbers (Error Identification)
#include <stdio.h>
int main()
{
int x,y;
scanf("%d%d",&x,&y);
printf("%d",x+y);
return 0;
}
ID:5473 C - WU - Next Number (Error Identification)
#include <stdio.h>
int main()
{
int N;
scanf("%d", &N);
printf("%d",++N);
return 0;
}
ID:5480 C - WU - Print Character (Error Identification)
#include <stdio.h>
int main()
{
char ch;
scanf("%c",&ch);
printf("%c",ch);
return 0;
}
ID:5422 C - WU - Odd and Even (Condition)
if(num1%2!=0 && num2%2==0)
ID:5432 C - WU - Two Integers Equal Or Not (Condition)
if(num1==num2)
ID:5489 C - WU - Increment by 1 if Less Than 10 (Error Identification)
#include <stdio.h>
void main()
{
int N;
scanf("%d", &N);
if(N < 10)
{
N++;
}
else
{
N--;
}
printf("%d", N);
}
ID:5423 C - WU - Absolute Difference Two Integers (Printf Args)
if(A>B)
printf("%d",A-B);
else
printf("%d",B-A);
ID:5435 C - WU - Four Integers - Product of Difference (Scanf Args)
scanf("%d%d%d%d ",&B,&D,&A,&C);
ID:5424 C - WU - Anyone Even (Condition)
if(num1%2==0 || num2%2==0)
ID:5439 C - WU - Four Integers - Quotient of Subtraction (Scanf Args)
scanf("%d%d%d%d ",&C,&D,&A,&B);
ID:5478 C - WU - Print Yes if any of the two integers is even (Error Identification)
#include<stdio.h>
int main()
{
int A,B;
scanf("%d %d",&A,&B);
if(A%2==0 || B%2==0)
{
printf("Yes");
}
else
{
printf("No");
}
}
ID:5476 C - WU - Product - Precision Two Decimal Places (Error Identification)
#include <stdio.h>
int main()
{
float a,b;
scanf("%f%f",&a,&b);
printf("%.2f",a*b);
return 0;
}
ID:5437 C - WU - Four Integers - Quotient of Sum (Scanf Args)
scanf("%d%d%d%d ",&C,&A,&B,&D);
ID:5483 C - WU - Print String (Error Identification)
#include <stdio.h>
int main()
{
char arr[10];
scanf("%s",arr);
printf("%s",arr);
return 0;
}
ID:5485 C - WU - Print Yes - Both Integers are Odd (Condition)
if(A%2!=0 && B%2!=0)
ID:5431 C - WU - Four Integers - Product of Sum (Scanf Args)
scanf("%d%d%d%d ",&C,&A,&B,&D);
ID:5487 C - WU - Print Yes - One of Two Integers is Odd
if(A%2!=0 || B%2!=0)
ID:5430 C - WU - Larger Integer (Condition)
if(num1>num2)
ID:5490 C - WU - Print Yes - At Least one of the Two Integers is Even
if(A%2==0 || B%2==0)
ID:5442 C - WU - Four Integers - Subtraction of Products (Scanf Args)
scanf("%d%d%d%d ",&C,&D,&A,&B);
ID:5433 C - WU - Four Integers - Quotient of Sum (Scanf Args)
scanf("%d%d%d%d ",&C,&A,&D,&B);
ID:5492 C - WC - Print skill or rack (Error Identification)
#include<stdio.h>
int main()
{
char ch;
scanf("%c",&ch);
switch(ch)
{
case 's':
printf("skill");
break;
default:
printf("rack");
}
return 0;
}
ID:5440 C - WU - Four Integers - Sum of Product (Scanf Args)
scanf("%d%d%d%d ",&C,&A,&B,&D);
ID:5443 C - WU - Four Integers - Sum of Product and Quotient (Scanf Args)
scanf("%d%d%d%d ",&C,&A,&B,&D);
ID:5454 C - WU - Four Integers - Subtraction of Quotients (printf Args)
printf("%d",(A/B)-(C/D));
ID:5466 C - WU - Print String (Declaration)
char S[100];
ID:5447 C - WU - Four Integers - Sum of Remainders (printf Args)
printf("%d",(A%B)+(C%D));
ID:5477 C - WU - Print 5 and 3
int i=3;
ID:5450 C - WU - Four Integers - Subraction of Remainders (scanf Args)
scanf("%d%d%d%d ",&B,&C,&A,&D);
ID:5495 C - WU - Print 12
int M=5,N;
ID:5453 C - WU - Four Integers - Sum of Quotient and Remainder (printf Args)
printf("%d",(A/B)+(C%D));
Comments
Post a Comment