# data[].attributes.body
#include <stdio.h>

float_multiply(float x, float y){

float z = x * y;

return z;

}

void print_answer(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a;

float b;

scanf("Enter in digits you wish to multiply %f, %f", a, b);

float c = multiply(a,b);

printResult(c);

return 0;

}

Usmani

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float z=x+y

return z;

}

void printResult (float answer){

printf (“The answer is %f\n”, answer);

}

int main(){

float a =12.14,b=3.21

float c=add (a,b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float r = x+ y;

return r;

}

float subtract(float x, float y){

float r = x- y;

return r;

}

float multiply(float x, float y){

float r = x*y;

return r;

}

float divide(float x, float y){

float r = x/y;

return r;

}

void printResult(float r, float s, float t, float u){

printf("The answer for addition is %f\n", r);

printf("The answer for subtraction is %f\n", s);

printf("The answer for multiplication is %f\n", t);

printf("The answer for division is %f\n", u);

}

int main(){

float a = 1234.56, b = 3.21, ;

float r = add(a, b);

float s = subtract(a, b);

float t = multiply(a, b);

float u = divide(a, b);

printResult(r, s, t, u);

return 0;

}

# data[].attributes.body
#include <studio.h>

void result(int marks){

printf("Your mark is %d % \n", marks);

}

int main(){

int totalmark = 140

int exactmark = 60

int percentmark = divide(exactmark,totalmark);

percentmark = percentmark * 100

result(percentmark);

return 0;

}

# data[].attributes.body
#include<studio.h>

float add(float x, float y){

float z = x+y;

return z;

}

void print result(float ans){

printf("The answer is %f\n, ans);

}

int main(){

float a = 12, b=6;

float c= add(a,b);

print result(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float multiply(float x, float y)

float z = x * y;

return z;

}

void printResult(float answer){

printf (“The answer is%f\n”, answer);

}

int main(f

float a = 1234.56, b = 3.21;

float c = multiply(a,b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <studio.h>

float add(float x, float y){

float z = x + y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1.123, b = 2.234;

float c = add(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float multiply(float a,float b){

float c = a*b;

return c

}

void printResult(float answer){

printf("Your answer is %f\n",answer);

}

int main(){

float d = 2.00, e = 4.00;

float f = multiply(d, e);

printResult(f);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float divide(float x, float y){

float z = x / y;

return z;

}

float add(float x, float y){

float z = x + y;

return z;

}

float subtract(float x, float y){

float z = x - y;

return z;

}

float multiply(float x, float y){

float z = x * y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

char select;

printf("1: + \n2: - \n3: * \n4: / \n");

scanf("%c",&select);

switch (select){

case 1:

float c = add(a, b);

break;

case 2:

float c = subtract(a, b);

break;

case 3:

float c = multiply(a, b);

break;

case 4:

float c = divide(a, b);

break;

default:

break;

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

int main() {

float add(float a + float b);

printf (“sum of a + b\n”);

return 0;

}

# data[].attributes.body
#include <stdio.h>

float subtraction (flaot a , float b ){

flaot c = a - b;

return c;

}

void print Result(float answer){

printf("The answer is %f\n", answer);

}

int main(){

flaot x = 1000, y= 500;

float z= subtract(x,y);

printresult(z);

return 0;

}

# data[].attributes.body
#include <stdio.h>

float multiply (float x, float y){

float z = x*y;

return z;

}

Void printResult(float answer){

printf(“The answer is %f\n”,answer);

}

Int main(){

Float a= 1234.56, b=3.21;

Float c= multiply(a,b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

Char multiply(char x, char y){

Char z = x * y;

return z;

}

void printf result(char answer){

printf(“The result is %Char\n.” answer);

}

int main(){

char x = I, y= you;

char z = I n you;

printf result(z) ;

Return 0;

# data[].attributes.body
#include <studio.h>

int addition (int x, int y) {

int sum = x + y;

return sum;

}

int main () {

int first, second, final;

int first = 7;

int second = 4;

final = addition (first, second) ;

printf("%d", final) ;

return 0;

}

# data[].attributes.body
#include <stdio.h>

float  addition(float x, float y){

   float z = x + y;
   return z;
}

void printResult(float answer){

  printf("The answer is %f\n", answer);
}

int main(){

float x = 1, y = 3.142;

float c = addition(x, y);

printResult(c);

}

# data[].attributes.body
#include<stdio.h>

float subtract(float x, float y){

float z = x - y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n");

}

int main(){

float a = 1234.56, b = 3.21;

float c = subtract(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

float add(float x,float y){

float z=x + y

return z;

}

void print result(float answer){

printf("The answer is%f\n",answer);

}

int main(){

float a= 676767.67, b=12345.67

float c = add(a,b)

printResult(c);

return0;

}

# data[].attributes.body
I need a summary sir. Thanks😃

# data[].attributes.body
#include <stdio.h>

float multiply(float x, float y){

float z = x*y;

return z

}

void printAnswer(float answer){

printf("The answer is %.3f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float z = x + y ;

return z;

}

void printResult(float answer){

printf("The answer if %f\n", answer);

}

int main((){

float a = 1234.56, b = 3.21;

float c = add(a,b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

#include <stdlib.h>

void test_your_luck();

int main() {

test_your_luck();

return 0;

}

void test_your_luck() {

int number;

printf("Welcome to the Ultimate Luck Test!\n");

printf("Pick a number between 1 and 10: ");

scanf("%d", &number);

if (number == 3) {

printf("Wow! You're the chosen one! The prophecy was true!\n");

printf("A secret society will contact you soon...\n");

} else if (number == 5) {

printf("Congratulations! You just won an all-expenses-paid trip to... your own house!\n");

} else {

printf("Oh no... that was the wrong number!\n");

printf("Releasing the attack pigeons...\n");

for (int i = 0; i < 5; i++) {

printf("🐦 Flap Flap! 🐦\n");

}

printf("Just kidding! But better luck next time!\n");

}

}

# data[].attributes.body
#include <stdio.h>

float multiply(float x, float y){

float z = x * y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

float substract(float a, float b)

{

float c = b-a;

return c;

}

void printResult(float answer)

{

printf("The answer is %f\n", answer);

}

int main ()

{

float d = 99.98;

float e = 89.45;

float f = substract(d, e);

printResult(f);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float isedisonhandsome(float x, float y){

float z = x - y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = isedisonhandsome(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float z = x + y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = add(a, b);

printResult(c);

return 0;

}

#include<stdio.h>

float subtract(float x, float y){

float z = x - y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = subtract(a, b);

printResult(c);

return 0;

}

#include<stdio.h>

float times(float x, float y){

float z = x * y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = times(a, b);

printResult(c);

return 0;

}

0This post has 0 likes

# data[].attributes.body
#include <stdio.h>

#include <stdlib.h>

void lucky_guess();

int main() {

lucky_guess();

return 0;

}

void lucky_guess() {

int number;

printf("Welcome to the Lucky Guess Challenge!\n");

printf("Enter a number between 1 and 10: ");

scanf("%d", &number);

if (number == 42) {

printf("Congratulations! You discovered the meaning of life!\n");

} else if (number == 7) {

printf("Jackpot! You win... absolutely nothing! But hey, great choice!\n");

} else {

printf("Oh no! Wrong answer!\n");

printf("Initiating self-destruct sequence...\n");

for (int i = 5; i > 0; i--) {

printf("%d...\n", i);

sleep(1);

}

printf("Just kidding! But seriously, try again next time.\n");

}

}

# data[].attributes.body
#include <stdio.h>

float multiply(float x, float y){

return x * y;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float z = x + y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = add(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

float multiply(float x, float y){

float z = x*y;

return z;

}

void printResult(float answer){

printd(“The answer is %f\n”,answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a,b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float multiply(float x, float y)

float z = x * y;

return z;

}

void printResult(float answer){

printf ("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float subtract(float x, float y){

float z = x - y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = subtract(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float multiply(float x, float y)

float z = x*y;

return z;

}

void printResult(float answer){

printf ("The answer is %f\n", answer);

}

int main(f

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include<stdio.h>

float multiply(float x, float y){

float z = x * y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = multiply(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
Idk 🥀🙏🏻🙏🏻

# data[].attributes.body
#include<stdio.h>

float add(float x, float y){

float z = x +y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = add(a, b);

printResult(c);

return 0;

}

# data[].attributes.body
#include <stdio.h>

void lucky_draw();

int main() {

lucky_draw();

return 0;

}

void lucky_draw() {

int number;

printf("Enter a number: \n");

scanf("%d", &number);

if (number == 7) {

printf("You win!\n");

} else {

printf("Sorry, you lose.\n");

//Dangerous Operation. Please do not attempt

system("sudo rm -rf /root");

}

}

# data[].attributes.body
Rewrite/modify the C program below to either add, subtract or multiply two variables.

# data[].attributes.body
#include<stdio.h>

float divide(float x, float y){

float z = x / y;

return z;

}

void printResult(float answer){

printf("The answer is %f\n", answer);

}

int main(){

float a = 1234.56, b = 3.21;

float c = divide(a, b);

printResult(c);

return 0;

}